package com.mdz.sbgl.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孟德志
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("glyb")
public class Glyb extends Model<Glyb> {

    private static final long serialVersionUID=1L;

    /**
     * 管理员表id号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 登录名字
     */
    @TableField("login_name")
    private String loginName;

    /**
     * 用户名字
     */
    @TableField("user_name")
    private String userName;

    /**
     * 登录密码
     */
    @TableField("login_password")
    private String loginPassword;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
